package cn.itsource.blog.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Article {
    //主键id
    private Long id;
    //文章图片
    private String articlePic;
    //文章名
    private String articleName;
    //文章标签
    private String articleTag;
    //文章类型
    private Long articleType;
    //文章状态   0:草稿;1:发布;2:弃用
    private Integer articleState;
    private Employee employee;
    private ArticleType articleype;
    //'是否置顶(0:不置顶;1:置顶)',
    private Integer topState;
    //发布作者id
    private Integer publishId;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime = new Date();
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    //文章阅读量
    private Integer articleReadCount = 0;
    //文章点赞数
    private Integer articleStarNum = 0;
    //文章评论数
    private Integer articleCommentNum = 0;
    //文章简介
    private String articleRemark;
    //文章内容
    private String articleContent;
}

